/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package alcatelparser.modules;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author geniuz
 */
public class ResultTagNames
{

    private ResultTagNames()
    {
        loadTagProperties();
    }

    private void loadTagProperties()
    {
        _props = new Properties();
        try
        {
            _props.load(new FileInputStream(new File((new StringBuilder()).append(Env.getEnv().getRunDir()).append(File.separator).append(I.I(1064)).toString())));
        }
        catch(IOException ioexception)
        {
            //throw new ApplicationInitalyzeError(I.I(1085));
        }
    }

    public static final ResultTagNames getTagProperties()
    {
        if(_tProps == null)
            try
            {
                _tProps = new ResultTagNames();
            }
            catch(Exception applicationinitalyzeerror)
            {
                //LOG.error(applicationinitalyzeerror);
            }
        return _tProps;
    }

    public static final void initialyze()
    {
        _tProps = new ResultTagNames();
    }

    public final String getProperty(String s)
    {
        return _props.getProperty(s);
    }

    private static final String TAG_PROPERTIES_FILE = "resulttagnames.props";
    private Properties _props;
    private static ResultTagNames _tProps;
    //private static final Logger LOG = Logger.getLogger(com/alcatel/properties/ResultTagNames);

}
